-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ATAC QC component #868
base: main
Are you sure you want to change the base?
ATAC QC component #868
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small comments, but looking good overall! 👍
mdata = mu.read(par["input"]) | ||
|
||
logger.debug("Making var names unique") | ||
mdata.var_names_make_unique() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I want to avoid calling this here
atac.obs.drop(col, axis=1, inplace=True) | ||
|
||
logger.info("Calculating QC metrics") | ||
sc.pp.calculate_qc_metrics(atac, percent_top=None, log1p=False, inplace=True, layer=par["layer"]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I want to avoid that things get overwritten by scanpy, could you pass a copy of the data?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did it manually
Co-authored-by: Dries Schaumont <[email protected]>
Co-authored-by: Dries Schaumont <[email protected]>
Tests are now failing due to incorrect scanpy version specification: Shouldn't be a problem on my side, I just use |
Co-authored-by: Dries Schaumont <[email protected]>
Changelog
Add component for calculating QC metrics for ATAC data.
Issue ticket number and link
Contributes to #398
Checklist before requesting a review
I have performed a self-review of my code
Conforms to the Contributor's guide
Check the correct box. Does this PR contain:
Proposed changes are described in the CHANGELOG.md
CI tests succeed!